package cn.butcher21.view;

import cn.butcher21.utils.BuildScene;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

import java.io.File;

public class SettingController {

    @FXML
    private ImageView five;

    @FXML
    private ImageView eye;

    @FXML
    private ImageView light;

    @FXML
    private void initialize() {
        five.setImage(new Image(new File("src/main/resources/5.png").toURI().toString()));
        light.setImage(new Image(new File("src/main/resources/guang.png").toURI().toString()));
    }

    @FXML
    void changeUser(ActionEvent event) {
        BuildScene.stages.get("mainStage").close();
        BuildScene.stages.get("loginStage").show();
    }

    @FXML
    void exit(ActionEvent event) {
        System.exit(0);
    }

}
